package com.ssy.lingxi.platform.manage.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.inner.SiteControllerFeignFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.site.SiteIdDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 站点设置内部类
 * @author lqa
 * @version 2.0.0
 * @date 2022/3/7
 */
@FeignClient(value = "platform-manage-service", fallback = SiteControllerFeignFallback.class)
public interface SiteControllerFeign {

    /**
     * 判断站点是否开启SAAS多租户
     ** @return 操作结果为boolean值
     */
    @PostMapping("/manage/paas/site/feign/enableMultiTenancy")
     Wrapper<Boolean> enableMultiTenancy(@RequestBody @Valid SiteIdDTO siteIdDTO);
}
